<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>申请独立开票</title>
		<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/js/index.js"></script>
		<style>
			input[name="invoice_money"]{
				border:0;
				color: #FF6600;
				font-size: 18px;
			}
		</style>
	</head>

	<body class="default">
		<div class="layui-form-item" id="invoice_info" style="display: none; padding: 20px;" >
			<form class="layui-form" lay-filter="tpl_add_invoice_info" action="{:url('Invoice/saveInvoice')}">
				<input type="hidden" name="invoice_id" />
				<div class="layui-form-item">
					<label class="layui-form-label">开票金额</label>
					<div class="layui-input-inline">
						<input name="invoice_money" readonly="" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">开票方式</label>
					<div class="layui-input-inline">
						<input type="radio" name="builder_type" lay-filter="builder_type" checked="" value="1" title="纸质发票">
				 		<input type="radio" name="builder_type" lay-filter="builder_type" value="2" title="电子发票">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">发票类型</label>
					<div class="layui-input-inline">
						<input type="radio" name="invoice_type" lay-filter="invoice_type" value="1" title="普通发票">
						<input type="radio" name="invoice_type" lay-filter="invoice_type" checked="" value="3" title="增值税发票">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">发票抬头</label>
					<div class="layui-input-inline">
						<input name="invoice_title" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">税号</label>
					<div class="layui-input-inline">
						<input name="invoice_duty"  lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item invoice_type3">
					<label class="layui-form-label">地址</label>
					<div class="layui-input-inline">
						<input name="invoice_addr" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item invoice_type3">
					<label class="layui-form-label">电话</label>
					<div class="layui-input-inline">
						<input name="invoice_tel" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item invoice_type3">
					<label class="layui-form-label">开户银行</label>
					<div class="layui-input-inline">
						<input name="invoice_bank" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item invoice_type3">
					<label class="layui-form-label">开户账号</label>
					<div class="layui-input-inline">
						<input name="invoice_account" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label"></label>
					<div class="layui-input-inline">
						<button type="button" lay-submit lay-filter="submit_invoice" id="btn-invoice" class="layui-btn layui-btn-normal">申请开票</button>
					</div>
				</div>
			</form>
		</div>
		<div style="margin: 30px 20px;">
			<div class="search-box">
				<form class="search_form layui-form" lay-filter="apply_search_form" action="">
					<div class="layui-inline">
						<label class="layui-form-label">订单号</label>
						<div class="layui-input-inline">
							<input type="text" name="order_no" placeholder="订单号" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">发票抬头</label>
						<div class="layui-input-inline">
							<input type="text" name="invoice_title" placeholder="发票抬头" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">发票税号</label>
						<div class="layui-input-inline">
							<input type="text" name="invoice_duty" placeholder="发票税号" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="pack-up"></div>
				</form>
			</div>
			<table class="layui-hide" id="apply_list" lay-filter="apply_list"></table>
		</div>
		<script>
			var apply_cols = {$cols},
			ajax_apply_url = "{:url('Invoice/ajaxApply')}";
		</script>
		<script type="text/html" id="apply_tool">
			<div class="layui-btn-group">
			<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="apply_invoice" data-title="申请开票"><i class="layui-icon layui-icon-form"></i></a>
			</div>	
			</div>
		</script>
		<script src="/static/js/invoice/apply.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
